// 定义关于counter的store
import { defineStore } from 'pinia';
import { ref } from 'vue';

export const useUserStore = defineStore('userStore', () => {
  let token = ref('');
  let avatar = ref('');

  const getUserInfo = () => {
    token.value = localStorage.token;
  };
  return {
    token,
    avatar,
    getUserInfo,
  };
});
